Skip to main content

mobileGetLaunchData

Type​

function

Summary​

Returns an array containing information set by the launcher of the application.

Syntax​

get mobileGetLaunchData()

Description​

Use the mobileGetLaunchData function to get the application launch parameters. The returned array will contain the information that is set by the launching application. This can be used to perform specific actions supported by an application on the provided data.

note

On Android, custom Intent filters can be specified in the manifest to allow an application to perform actions for other applications

When the application is launched to handle one of these actions, its launch Intent can be queried to determine what action was requested, and the data to use to fulfil that request.

Examples​

put mobileGetLaunchData() into tLaunchData
constant kActionView = "android.intent.action.VIEW"

put mobileGetLaunchData() into tLaunchData

if tLaunchData is an array and tLaunchData["action"] is kActionView then
-- view content specified in tLaunchData["data"]
else
-- launched as main application
end if

Value​

NameTypeDescription

return

Returns an array containing information set by the launcher of the application.

function: mobileGetLaunchURL

message: launchDataChanged

Compatibility and Support​

Introduced

LiveCode 7.0

OS

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?